import request from '@/utils/request'

// 查询运行维护列表
export function listAfMaintenance(query) {
  return request({
    url: '/security/afMaintenance/list',
    method: 'get',
    params: query
  })
}

// 查询运行维护详细
export function getAfMaintenance(id) {
  return request({
    url: '/security/afMaintenance/' + id,
    method: 'get'
  })
}

// 新增运行维护
export function addAfMaintenance(data) {
  return request({
    url: '/security/afMaintenance',
    method: 'post',
    data: data
  })
}

// 修改运行维护
export function updateAfMaintenance(data) {
  return request({
    url: '/security/afMaintenance',
    method: 'put',
    data: data
  })
}

// 删除运行维护
export function delAfMaintenance(id) {
  return request({
    url: '/security/afMaintenance/' + id,
    method: 'delete'
  })

}
  export function getAllDeviceByType(type){
    return request({
      url: '/security/afMaintenance/type/' + type,
      method: 'get'
    })
}


